﻿#include<iostream>
using namespace std;

void sum_mul(int x, int y, int* sum, int* mul) {
	*sum = x + y;
	*mul = x * y;
}

int main() {
	int a, b;
	int he = 0, ji = 0;
	cout << "整数a："; cin >> a;
	cout << "整数b："; cin >> b;

	sum_mul(a, b, &he, &ji);

	cout << "和为：" << he << '\n';
	cout << "积为：" << ji << '\n';

	cin.get();
	cin.get();
}